package com.landscope.issue.utils;

import cn.hutool.crypto.digest.MD5;

/**
 * 密码加密工具类
 *
 * @author qzp
 * @version v1.0
 * @date 2021/6/28 14:23
 **/
public class PasswordUtil {

    /**
     * 密码md5加密
     * @param password:
     * @return {@link * @return java.lang.String}
     * @throws
     * @author 瞿子朋
     * @date 2021/6/28 14:35
     * @version v1.0
     **/
    public static String encrypt(String password) {
        String md5 = MD5.create().digestHex(password, "utf-8");
        return md5;
    }

    public static void main(String[] strs){
        System.out.println(encrypt("123456"));
    }
}
